package com.example.demo.service;

import com.example.demo.dao.Message;
import com.example.demo.dto.MessageDTO;
import org.springframework.data.repository.query.Param;

import java.util.Set;

public interface MessageService {
    Long sendMessageByUserIdAndReceiverId(MessageDTO messageDTO,long userId,long receiverId);
    void deleteMessageByMessageId(long messageId);
    Set<MessageDTO> getMessageBySenderIdAndReceiverId(long userId, long receiverId);
    Set<MessageDTO> getLatestMessagesBySenderId(Long senderId);
}
